//
//  SelectedTopicTableViewCell.m
//  DefendHealth
//
//  Created by 吾诺翰卓003 on 17/2/20.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "SelectedTopicTableViewCell.h"
#import "Header.h"
@interface SelectedTopicTableViewCell ()
{
    UILabel *titile;
    UILabel *content;
}
@end
@implementation SelectedTopicTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIView *hui = [UIView new];
        hui.frame = CGRectMake(0, 0,WindowWidth , 15);
        hui.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:hui];
        
        UIImageView *backImg = [UIImageView new];
        backImg.frame = CGRectMake(0, kMaxY(hui.frame), WindowWidth, 172);
        backImg.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:backImg];
        
        titile = [UILabel new];
        titile.frame = CGRectMake(0, kMaxY(hui.frame)+62.5, WindowWidth, 21);
        titile.text = @"敢秀才精彩";
        titile.font = FONT(21);
        titile.textColor = UIColorFromRGB(0x352a28);
        titile.textAlignment = 1;
        [self.contentView addSubview:titile];
        
        content = [UILabel new];
        content.frame = CGRectMake(0, kMaxY(titile.frame)+9, WindowWidth, 11.5);
        content.text = @"人气：52142";
        content.font = FONT(11.5);
        content.textColor = UIColorFromRGB(0x352a28);
        content.textAlignment = 1;
        [self.contentView addSubview:content];
    }
    return self;
}
@end
